# Element Locator

## Overview
Element Locator provides various strategies and methods to identify and interact with elements on web pages. This feature ensures reliable element identification across different browsers and dynamic web applications.

## Locator Strategies

### Primary Strategies
- **XPath**
  - Absolute XPath
  - Relative XPath
  - Dynamic XPath
  - Custom expressions
  - Axis methods

- **X-Y Coordinates**
  - Pixel positioning
  - Relative positioning
  - Dynamic adjustment
  - Screen resolution

- **Search on Page**
  - Text content
  - Element labels
  - Partial matches
  - Case sensitivity
  - Regular expressions

### Advanced Strategies
- **Same Row as Test Data**
  - Data-based location
  - Table row context
  - Dynamic content
  - Data relationships

- **Same Row as Previous Data**
  - Context-based location
  - Relative positioning
  - State-dependent
  - Dynamic updates

## Configuration

### Object Identifier
- **XPath Expression**
  - Custom XPath
  - Dynamic values
  - Variable substitution
  - Conditional logic

- **Element Properties**
  - ID
  - Class
  - Name
  - Type
  - Attributes

### Iframe Handling
- **Iframe XPath**
  - Frame identification
  - Nested frames
  - Frame switching
  - Context management

- **Frame Context**
  - Parent frame
  - Child frames
  - Frame hierarchy
  - Context switching

### Tab Management
- **Tab Identification**
  - Tab index
  - Tab title
  - Tab URL
  - Tab content

- **Tab Operations**
  - Switch tabs
  - Close tabs
  - New tabs
  - Tab order

## Best Practices
1. Use reliable locators
2. Prefer unique identifiers
3. Handle dynamic content
4. Manage iframe context
5. Document locator strategy
6. Test across browsers
7. Maintain locator stability 